<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <button id="notifyBtn">通知消息</button>
</body>
<script>
  let notifyBtn = this.document.querySelector('#notifyBtn')
  let option = {
    title: '姑娘们出来 接客了！',
    body: '有大官人刚翻了你的牌子'
  }

  notifyBtn.onclick = function () {
    new window.Notification(option.title, option)
  }
</script>
</html>